package cn.yunhe.crm.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.yunhe.crm.annotation.SystemLog;
import cn.yunhe.crm.entity.SysLog;
import cn.yunhe.crm.service.SysLogService;

@Scope("prototype")
@Controller
public class SysLogController {
	
	@Autowired
	@Qualifier("syslogService")
	private SysLogService syslogservice;
	
	public void setSyslogbiz(SysLogService syslogservice) {
		this.syslogservice = syslogservice;
	}
	
	
	@RequestMapping("syslog.do")
	public String todetail(HttpServletRequest request){
		List<SysLog> list=syslogservice.getAll();
		request.setAttribute("list",list);
		return "sysloginfo";
	}
	
}
